import request from "@/utils/request";

export const filesGet = (page) => {
    return request({
        url: '/file/fileList/'+page,
        method: 'get',
    }).then(
        res => {
            return res.data
        }
    )
};

/*
http://localhost:9529/api/file/download?fileId=cefde2ab72517eda818d9779183aada6
* */
export const fileDownload = (fileId) => {
    return request({
        url: '/file/download?fileId=cefde2ab72517eda818d9779183aada6',
        method: 'get',
    })
};
